package com.zhuliwei.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhuliwei.domain.ResponseResult;
import com.zhuliwei.domain.dto.CommentListDto;
import com.zhuliwei.domain.entity.Comment;
import com.zhuliwei.domain.vo.PageVo;


/**
 * 评论表(Comment)表服务接口
 *
 * @author 朱力维
 * @since 2022-10-19 20:18:29
 */
public interface CommentService extends IService<Comment> {
    /**
     * 查询所有根评论
     *
     * @param type
     * @param articleId
     * @param pageNum
     * @param pageSize
     * @return
     */
    ResponseResult commentList(String type, String articleId, Integer pageNum, Integer pageSize);

    ResponseResult addComment(Comment comment);

    ResponseResult<PageVo> getAllComment(Integer pageNum, Integer pageSize, CommentListDto commentDto);
}

